package com.wzt.greenhouse.model;

import java.util.ArrayList;
import java.util.List;

import android.widget.ImageView;

public class ControlButton {
	private String text;
	private int image1;
	private int image2;
	private String type;
	private ImageView imageView = null;
	private List<String> cmds = new ArrayList<String>();
	private ControlInfo parentInfo = null;
	public ControlButton(ControlInfo parent)
	{
		this.parentInfo = parent;
	}
	
	public String getText(){return text;}
	public int getImage1(){return image1;}
	public int getImage2(){return image2;}
	public int getCmdSize(){return cmds.size();}
	public void addCmd(String cmd)
	{
		cmds.add(cmd);
	}
	public String getCmd(int index){return cmds.get(index);}
	public String getType(){return type;}
	
	public void setImageView(ImageView view)
	{
		imageView = view;
	}
	
	public ImageView getImageView() {
		return imageView;
	}
}
